<%@ page language="java" contentType="text/html; charset=utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>鼎嘉旅游-用户注册</title>
	
</head>
<%@ include file="/WEB-INF/elements/header.jsp" %>
<body style="background-image: url(${base }/statics/images/login_bg.jpg);" >

<!-- content begin -->
<link rel="stylesheet" type="text/css" href="${base}/statics/css/main.css">
	<div id="content">
		 <div class="lg-ad" title="登录注册背景" style="height: 600px;">
			<!-- <img src="" alt="登录注册背景"> -->
			<a href="#"></a>
		</div> 
		<div id="login-box">
			<div class="way lg-account">
				<div class="lg-tip">
					<h4>密码登录</h4>
					<i class="iconfont way-icon">&#xe64a;</i>
				</div>
				<form id="account-form" action="${base }/user/login.html?path=${path}&id=${id}" class="layui-form" method="post">
					<div>
						<label for="username"><i class="iconfont">&#xe649;</i></label>
						<input type="text" lay-verify="required|phone" name=phone id="username" placeholder="手机号/邮箱">
						<i id="clear-icon" class="iconfont">&#xe65b;</i>
					</div>
					<div>
						<label for="password"><i class="iconfont">&#xe64c;</i></label>
						<input type="password" lay-verify="pass" name="pwd" id="password" placeholder="密码">
						 <div class="layui-form-mid layui-word-aux">请填写6到12位密码</div>
					</div>
					<input type="submit" lay-submit="" id="lg-btn" name="submit" value="登 录">
					<input type="hidden" name="submitted" value="true">
				</form>
				<p class="lg-links">
					<a href="forgot_pass.html">忘记密码</a>
					<a href="${base }/comm/toregister.html">免费注册</a>
				</p>
				<p id="lg-error">
					<i class="iconfont error-icon">&#xe65b;</i>
					<span></span>
				</p>
			</div>
			
		</div>
	</div>


<!-- content end -->
<%@ include file="/WEB-INF/elements/footer.jsp" %>
<script src="${base }/statics/layui/layui.js" charset="utf-8"></script>
<script type="text/javascript" src="js/SHA1.js"></script>
<script type="text/javascript" src="${base }/js/form.js"></script>
<script>
layui.use(['form', 'layedit', 'laydate'], function(){
  var form = layui.form
  ,layer = layui.layer
  
  
//自定义验证规则
  form.verify({
	  title: function(value){
	      if(value.length < 5){
	        return '标题至少得5个字符啊';
	      }
	    }
    ,pass: [/(.+){6,12}$/, '密码不正确']
    ,content: function(value){
      layedit.sync(editIndex);
    }
  });
  
//监听提交
  form.on('submit(demo1)', function(data){
    layer.alert(JSON.stringify(data.field), {
      title: '最终的提交信息'
    })
    return false;
  });
  
});
  </script>
</body>
</html>